<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网络安全态势综合分析报告</title>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        :root {
            --primary: #2E95F8;
        }

        * {
            padding: 0;
            margin: 0;
        }

        body {
            background: #060606;
            color: #E9EAEC;
            font-family: Menlo, monospace;
        }

        .row {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            margin-bottom: 24px;
        }

        .col {
            flex: 1;
            min-width: 280px;
        }

        .page {
            max-width: 1400px;
            margin: 24px auto;
            padding: 16px;
        }

        .header {
            margin-bottom: 32px;
            padding: 20px;
            background-color: #09162F;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .header h1 {
            color: #129BFF;
            margin-bottom: 12px;
        }

        .card {
            border-radius: 4px;
            padding: 16px;
            border: 1px solid #1B64AA;
            background: rgba(8, 26, 48, 0.8);
            transition: transform 0.2s;
        }

        .card:hover {
            transform: translateY(-2px);
        }

        .card-title {
            margin-bottom: 16px;
            font-size: 18px;
            color: #129BFF;
            border-bottom: 1px solid #3B7DC5;
            padding-bottom: 8px;
        }

        .overview {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }

        .overview-item {
            flex: 1 1 150px;
        }

        .overview-item .label {
            color: #7C98B6;
            font-size: 14px;
            margin-bottom: 4px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 16px;
        }

        table th,
        table td {
            border: 1px solid #2A5C8A;
            padding: 8px 12px;
        }

        ul {
            padding-left: 18px;
        }

        canvas {
            max-width: 100%;
            height: auto;
        }

        .timeline {
            display: flex;
            gap: 32px;
            flex-wrap: wrap;
        }

        .timeline-item {
            flex: 0 0 25%;
            min-width: 200px;
        }

        .danger {
            color: #FF3B30;
        }
    </style>
</head>

<body>

    <div class="page">

        <!-- 头部 -->
        <div class="header">
            <h1>网络安全态势综合分析报告</h1>
            <p>全面分析当前网络环境中各类应用资产的安全状态、弱口令使用情况及入侵攻击事件特征，提供针对性的安全改进建议</p>
        </div>

        <div class="main">

            <!-- 一列布局 -->
            <div class="row">
                <div class="col">
                    <div class="card">
                        <h2 class="card-title">执行摘要</h2>
                        <div class="card-body">
                            <p>本报告基于提供的安全状态信息和安全趋势信息，对当前网络环境进行了全面分析。报告涵盖了应用资产统计、弱口令分析、入侵攻击事件评估以及受影响资产状态等多个维度。</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 三列布局 - 数据图表 -->
            <div class="row">
                <div class="col">
                    <div class="card">
                        <h2 class="card-title">资产类型分布</h2>
                        <div class="card-body">
                            <canvas id="assetDistributionChart"></canvas>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="card">
                        <h2 class="card-title">弱口令统计</h2>
                        <div class="card-body">
                            <canvas id="weakPasswordChart"></canvas>
                        </div>
                    </div>
                </div>
                <div class="col">
                    <div class="card">
                        <h2 class="card-title">风险等级</h2>
                        <div class="card-body">
                            <canvas id="riskLevelChart"></canvas>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 两列布局 -->
            <div class="row">
                <div class="col">
                    <div class="card">
                        <h2 class="card-title">高风险资产TOP5</h2>
                        <div class="card-body">
                            <table>
                                <tr>
                                    <th>IP 地址</th>
                                    <th>威胁等级</th>
                                    <th>命中次数</th>
                                    <th>主要攻击类型</th>
                                </tr>
                                <tr>
                                    <td>10.254.179.45</td>
                                    <td class="danger">高危</td>
                                    <td>8153</td>
                                    <td>未明确</td>
                                </tr>
                                <tr>
                                    <td>192.168.198.138</td>
                                    <td class="danger">高危</td>
                                    <td>1648</td>
                                    <td>未明确</td>
                                </tr>
                                <tr>
                                    <td>10.254.177.226</td>
                                    <td class="danger">高危</td>
                                    <td>850</td>
                                    <td>SSH 暴力破解成功</td>
                                </tr>
                                <tr>
                                    <td>10.254.177.216</td>
                                    <td class="danger">高危</td>
                                    <td>486(两次)</td>
                                    <td>删除 history 文件、SSH 软链接后门</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="col">
                    <div class="card">
                        <h2 class="card-title">TOP5弱口令</h2>
                        <div class="card-body">
                            <table>
                                <tr>
                                    <th>排名</th>
                                    <th>密码</th>
                                    <th>命中次数</th>
                                    <th>占比</th>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>antiy@123</td>
                                    <td>265</td>
                                    <td>94.6%</td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>password</td>
                                    <td>7</td>
                                    <td>2.5%</td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>123123</td>
                                    <td>4</td>
                                    <td>1.4%</td>
                                </tr>
                                <tr>
                                    <td>4</td>
                                    <td>123456</td>
                                    <td>3</td>
                                    <td>1.1%</td>
                                </tr>
                                <tr>
                                    <td>5</td>
                                    <td>testtest</td>
                                    <td>1</td>
                                    <td>0.4%</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 事件时间轴 -->
            <div class="row">
                <div class="col">
                    <div class="card">
                        <h2 class="card-title">时间趋势分析</h2>
                        <div class="card-body">
                            <div class="timeline">
                                <div class="timeline-item">
                                    <h3>14:51:44</h3>
                                    <p>可疑行为探测（中危）</p>
                                </div>
                                <div class="timeline-item">
                                    <h3>14:52:11</h3>
                                    <p>Linux tmp 目录程序运行</p>
                                </div>
                                <div class="timeline-item">
                                    <h3>14:52:25</h3>
                                    <p>可疑行为持续</p>
                                </div>
                                <div class="timeline-item">
                                    <h3>15:02:06</h3>
                                    <p>tmp 目录执行程序</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 安全建议 -->
            <div class="row">
                <div class="col">
                    <div class="card">
                        <h2 class="card-title">安全建议</h2>
                        <div class="card-body">
                            <h3>密码安全加固</h3>
                            <ul>
                                <li>实施最小长度12字符要求，必须包含大小写字母、数字和特殊字符</li>
                                <li>禁止使用前1000常用密码，实行90天强制密码更换</li>
                                <li>关键系统实施多因素认证（MFA），优先采用硬件令牌</li>
                            </ul>

                            <h3>入侵防护强化</h3>
                            <ul>
                                <li>立即隔离10.254.179.45等高危主机明细</li>
                                <li>禁用SSH密码认证，仅允许密钥认证</li>
                                <li>部署文件完整性监控（FIM）系统</li>
                            </ul>

                            <h3>资产安全管理</h3>
                            <ul>
                                <li>建立完整的资产清单，对AI应用等关键资产分级</li>
                                <li>每月执行漏洞扫描，高危漏洞72小时内修复</li>
                                <li>实施零信任架构，严格控制东西向流量</li>
                            </ul>

                            <h3>监测与响应</h3>
                            <ul>
                                <li>部署EDR解决方案，对tmp目录活动加强监控</li>
                                <li>建立7×24小时SOC团队，制定SSH入侵专项响应流程</li>
                                <li>建立内部威胁情报共享机制，订阅行业威胁情报源</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="footer">
            <p>网络安全态势综合分析报告 - 实施路线图</p>
            <div class="row">
                <div class="col">
                    <div class="card">
                        <h2 class="card-title">实施阶段</h2>
                        <div class="card-body">
                            <table>
                                <tr>
                                    <th>阶段</th>
                                    <th>时间框架</th>
                                    <th>主要任务</th>
                                </tr>
                                <tr>
                                    <td>紧急处置</td>
                                    <td>0-7 天</td>
                                    <td>隔离高危主机、重置弱密码、禁用受损SSH服务</td>
                                </tr>
                                <tr>
                                    <td>短期加固</td>
                                    <td>8-30 天</td>
                                    <td>部署基础监控、实施密码策略、部署关键MFA</td>
                                </tr>
                                <tr>
                                    <td>中期改进</td>
                                    <td>1-3 月</td>
                                    <td>网络分段实施/漏洞管理体系建设/SOC团队组建</td>
                                </tr>
                                <tr>
                                    <td>长期优化</td>
                                    <td>3-6 月</td>
                                    <td>零信任架构实施/威胁情报整合/自动化响应</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 资产类型分布图表
        const assetData = {
            labels: ['软件应用', 'AI 应用', 'Web 应用框架', 'Web 应用', 'Web 服务', '数据库', 'Web 站点'],
            datasets: [{
                label: '数量统计',
                data: [4109, 4109, 381, 337, 214, 36, 69],
                backgroundColor: [
                    '#2E95F8',
                    '#2376C0',
                    '#5D9AED',
                    '#4A7DCA',
                    '#3E69AF',
                    '#2C4D76',
                    '#1F3F5C'
                ]
            }]
        };

        const assetConfig = {
            type: 'bar',
            data: assetData,
            options: {
                indexAxis: 'y',
                scales: {
                    x: {
                        beginAtZero: true
                    }
                }
            }
        };

        new Chart(document.getElementById('assetDistributionChart'), assetConfig);

        // 弱口令统计图表
        const weakPasswordData = {
            labels: ['antiy@123', 'password', '123123', '123456', 'testtest'],
            datasets: [{
                label: '弱口令分布',
                data: [94.6, 2.5, 1.4, 1.1, 0.4],
                backgroundColor: '#FF3B30'
            }]
        };

        const weakPasswordConfig = {
            type: 'pie',
            data: weakPasswordData
        };

        new Chart(document.getElementById('weakPasswordChart'), weakPasswordConfig);

        // 风险等级图表
        const riskLevelData = {
            labels: ['高危', '中危', '低危'],
            datasets: [{
                label: '风险等级',
                data: [3, 1, 2],
                backgroundColor: ['#FF3B30', '#FFD600', '#32CD32']
            }]
        };

        const riskLevelConfig = {
            type: 'doughnut',
            data: riskLevelData,
            options: {
                plugins: {
                    legend: {
                        labels: {
                            color: '#E9EAEC'
                        }
                    }
                }
            }
        };

        new Chart(document.getElementById('riskLevelChart'), riskLevelConfig);
    </script>
</body>

</html>